package top.xtcoder.jdcbase.base.config;

import org.nutz.filepool.FilePool;
import org.nutz.filepool.NutFilePool;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class FilePoolConfig {
	@Value("${nutzFilePool.path:/tmp/top/xtcoder}")
	private String filePoolPath;
	@Bean
	public FilePool filePool() {
		FilePool pool = new NutFilePool(filePoolPath);
		return pool;
	}
}
